//导入request.js请求工具
import request from '@/utils/request.js'


//添加
export const productAddService = (productData)=>{
    return request.post('/product',productData);
}

//删除
export const delProductService = (productId) => {
    return request.delete('/product/'+productId)
}

//查询
export const productListService = (params)=>{
    return request.get('/product',{params:params})
}

//查询所有
export const productAllService = ()=>{
    return request.get('/product/all');
}

//更新
export const productUpdateService = (productData)=>{
    return request.put('/product',productData);
}